<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>UnitTest</title>
    <%@include file="_header.jsp" %>
</head>

    <div id="wrapper">
        <!-- Navigation -->
        <nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <a class="navbar-brand" href="index.jsp">Javascript/Typescript单元测试</a>
            </div>
        </nav>
    </div>
    <div style="height:50px"></div>

    <div class="container">
        <div class="row">
            <div class="col-md-4 col-md-offset-4">
                <div class="login-panel panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">登录</h3>
                    </div>
                    <div class="panel-body">
                        <form role="form">
                            <fieldset>
                                <div class="form-group">
                                    <div class="input-group">
                                        <input class="form-control" placeholder="Username" name="email" type="text" id="login_username" autofocus>
                                        <div class="input-group-btn">
                                            <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" tabindex="-1">
                                                <span class="caret"></span>
                                                <span class="sr-only">切换下拉菜单</span>
                                            </button>
                                            <ul class="dropdown-menu pull-right">
                                                <li><a href="#" onclick="$('#login_username').val('Admin')">超级管理员</a></li>
                                                <li><a href="#" onclick="$('#login_username').val('SecAdmin')">安全员</a></li>
                                                <li><a href="#" onclick="$('#login_username').val('Auditor')">审计员</a></li>
                                                <li><a href="#" onclick="$('#login_username').val('SysAdmin')">系统管理员</a></li>
                                            </ul>
                                        </div><!-- /btn-group -->
                                    </div><!-- /input-group -->
                                </div>
                                <div class="form-group">
                                    <input class="form-control" placeholder="Password" name="password" type="password" value="" id="login_password">
                                </div>
                                <div id="login_msg" class="alert alert-danger" style="display:none"></div>
                                <!-- Change this to a button or input when using this as a form -->
                                <a href="#" class="btn btn-lg btn-success btn-block" onclick="account.login($('#login_username').val(), $('#login_password').val())">登录</a>
                            </fieldset>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <%@include file="_footer.jsp" %>
</body>
</html>
